<template>
  <m-page>
    <!-- 确认申请信息页 -->
    <m-header title="确认申请信息"></m-header>
    <!-- 展示申请信息 -->
    <div class="apply_info">
      <ynet-field-item solid title="融易通卡" content="6666 6666 6666 6666" />
      <ynet-field-item solid title="申请金额" content="1万元" />
      <ynet-field-item solid title="申请期限" content="3天" />
      <ynet-cell-item title="0.45%/年" brief="按日折算为0.020%/天，本业务按日计算">
        <span class="" slot="left">手续费率</span>
      </ynet-cell-item>
      <ynet-field-item solid title="手续费用" content="7.5元" />
      <ynet-field-item solid title="账单日" content="每月18日" />
      <ynet-field-item solid title="本金到期" content="2020年02月13日" />
    </div>
    <ynet-button type="warning" @click="handclick">确定</ynet-button>

    <div class="tips">
      <p>温馨提示：手续费=申请金额X申请期限X申请费率</p>
    </div>
  </m-page>
</template>

<script>
import { FieldItem, Button ,CellItem} from "ynet-mobile";
export default {
  components: {
    [FieldItem.name]: FieldItem,
    [Button.name]: Button,
    [CellItem.name]:CellItem
  },
  data() {
    return {
    };
  },
  created() {},
  mounted() {},
  methods: {
    //页面跳转
    goto(item, params) {
      let url = `smallbusinessloan/rong_yi_tong_card/${item}`
      app.api.pushWindow( url ,params )
    },

    //确认按钮
    //点击确认之后 弹出密码校验框
    //密码校验成功后跳转至申请结果页
    handclick() {
      app.api.showPaymentPad({
        title: "请输入融易通卡取款密码",
        subTitle: "",
        randomKey:'6',
      }).then( res =>{
        console.log(res.data.pass)
        this.goto('apply_result.html')
        console.log(111)
      })
    }
  },
  watch: {},
  computed: {}
};
</script>

<style lang="scss" scoped>
@import "./index.scss";
</style>

